import java.util.*;
public class PP2_6{
    public static void main(String[] args){
        int hour,sec,min,total;
        System.out.println("Please input time as \"hour minute second\"");
        Scanner scan = new Scanner(System.in);
        hour=scan.nextInt();
        min=scan.nextInt();
        sec=scan.nextInt();
        total=hour*3600+min*60+sec;
        System.out.println("It equals:"+total+"seconds.");
}}
